<?php
class LimitedUsersModel extends BaseModel
{
	/**
	 * 进行验证码验证
	 * @param string $verify 验证码
	 * @return array
	 * @author Ice <iceinto@mallog.com.cn>
	 */
	public function checkVerify($verify){
		$map = array();
		$map['verify'] = $verify;
		return $this->getByWhere($map);
	}
	
	/**
	* 进行验证码验证
	* @param string $verify 验证码
	* @return array
	* @author Ice <iceinto@mallog.com.cn>
	*/
	public function getReceiveUsersCount($lid){
		$map = array();
		$map['lid'] = $lid;
		$map['status'] = 2; //已经领取的数量
		return $this->where($map)->count();
	}
}